Scenario #2000: Create Self Debitor for Partner with Identical Contact Data

UseCase Create Self Debitor For Partner With Identical Contact Data => Debitor: D-3101100 - Michelle Matthieu

Properties

Required

Given

name value
partnerNumber P-31011
debitorNumberSuffix 00
billable true
vatBusiness false
vatReverseCharge false
defaultPrefix mim

Determine Partner-Person UUID

HTTP GET "/api/hs/office/partners/P-31011" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "c3c80fe5-c6e0-4e11-9b63-e472fc768e2c", // Partner: P-31011 - Michelle Matthieu
  "partnerNumber" : "P-31011",
  "partnerRel" : {
    "uuid" : "ed2fbf99-b83d-4513-88dc-18d8229017cf",
    "anchor" : {
      "uuid" : "bb7b76f1-1922-46aa-8c22-468c70c3a9fa", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "42f2f790-db43-4347-93b9-9b2ef60f3c36", // personUuid
      "personType" : "NATURAL_PERSON",
      "tradeName" : null,
      "salutation" : null,
      "title" : null,
      "givenName" : "Michelle",
      "familyName" : "Matthieu-Zhang"
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "adb4df0b-d210-4a0b-bc87-4035b754b6ae", // Contact: Michelle Matthieu
      "caption" : "Michelle Matthieu",
      "postalAddress" : {
        "zipcode" : "22123",
        "country" : "Germany",
        "city" : "Hamburg",
        "street" : "An der Wandse 34",
        "name" : "Michelle Matthieu"
      },
      "emailAddresses" : {
        "main" : "michelle@matthieu.example.org"
      },
      "phoneNumbers" : {
        "mobile" : "+49 152 1234567"
      }
    }
  },
  "details" : {
    "uuid" : "c4d07944-1979-4ceb-970d-48ff83b3acb5",
    "registrationOffice" : null,
    "registrationNumber" : null,
    "birthName" : "Eichbaum",
    "birthPlace" : "Neustadt a.d.R.",
    "birthday" : "1951-03-25",
    "dateOfDeath" : null
  }
}

Create Debitor: D-3101100 - Michelle Matthieu

HTTP POST "/api/hs/office/debitors" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  -H 'Content-Type: application/json' \
  --data-binary @- <<EOF
{
  "debitorRel" : {
    "anchor.uuid" : "42f2f790-db43-4347-93b9-9b2ef60f3c36", // personUuid
    "holder.uuid" : "42f2f790-db43-4347-93b9-9b2ef60f3c36", // personUuid
    "contact.uuid" : "adb4df0b-d210-4a0b-bc87-4035b754b6ae" // Contact: Michelle Matthieu
  },
  "debitorNumberSuffix" : "00",
  "billable" : true,
  "vatBusiness" : false,
  "vatReverseCharge" : false,
  "defaultPrefix" : "mim"
}
EOF
=> status: 201 CREATED c415d0da-da9b-40c9-83f6-15f6b89c5aca

generated on 2026-07-17 01:42:26 for branch